package autocode

import (
	"github.com/flipped-aurora/gin-vue-admin/server/api/v1"
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type BusNovelsListRouter struct {
}

// InitBusNovelsListRouter 初始化 BusNovelsList 路由信息
func (s *BusNovelsListRouter) InitBusNovelsListRouter(Router *gin.RouterGroup) {
	busNovelsListRouter := Router.Group("busNovelsList").Use(middleware.OperationRecord())
	busNovelsListRouterWithoutRecord := Router.Group("busNovelsList")
	var busNovelsListApi = v1.ApiGroupApp.AutoCodeApiGroup.BusNovelsListApi
	{
		busNovelsListRouter.POST("createBusNovelsList", busNovelsListApi.CreateBusNovelsList)   // 新建BusNovelsList
		busNovelsListRouter.DELETE("deleteBusNovelsList", busNovelsListApi.DeleteBusNovelsList) // 删除BusNovelsList
		busNovelsListRouter.DELETE("deleteBusNovelsListByIds", busNovelsListApi.DeleteBusNovelsListByIds) // 批量删除BusNovelsList
		busNovelsListRouter.PUT("updateBusNovelsList", busNovelsListApi.UpdateBusNovelsList)    // 更新BusNovelsList
	}
	{
		busNovelsListRouterWithoutRecord.GET("findBusNovelsList", busNovelsListApi.FindBusNovelsList)        // 根据ID获取BusNovelsList
		busNovelsListRouterWithoutRecord.GET("getBusNovelsListList", busNovelsListApi.GetBusNovelsListList)  // 获取BusNovelsList列表
	}
}
